package com.example.sofa_module.detail;

import com.example.adapter_sdk.quick.BaseQuickAdapter;
import com.example.adapter_sdk.quick.BaseViewHolder;
import com.example.sofa_module.R;

public class CommentAdapter extends BaseQuickAdapter<CommentEntity.DataBean.Comment> {
    public CommentAdapter() {
        super(R.layout.item_comment);
        addItemChildClick(R.id.comment_delete);
    }

    @Override
    public void convert(BaseViewHolder holder, CommentEntity.DataBean.Comment item) {
        holder.setCircleImage(R.id.author_avatar,item.author.avatar);
        holder.setText(R.id.author_name,item.author.name);
        holder.setText(R.id.create_time,item.createTime+"");
        holder.setText(R.id.comment_text,item.commentText);
    }
}
